/*
 *    Copyright (c) 2018-2025, boss All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the boss developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: boss
 */

package com.hopes.bizz.basic.hazard.sds.dto;

import com.alibaba.excel.annotation.ExcelProperty;
import com.hopes.bizz.common.core.annotation.ExcelDictImportValidate;
import com.hopes.boss.common.entity.ExcelDTO;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 危化品入库记录
 *
 * @author daijie
 * @date 2023-11-13 19:25:41
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class HazChemicalInExcelDTO extends ExcelDTO {

    private static final long serialVersionUID = 1L;


	/**
	* 危化品标识
	*/
    @ExcelProperty("危化品标识")
	@NotBlank(message = "危化品标识为必填项")
	@ExcelDictImportValidate(enumResolver = "chemical_sds",message = "危化品标识不存在")
    private String sdsId;

	/**
	* 入库类型
	*/
    @ExcelProperty("入库类型")
	@NotBlank(message = "入库类型为必填项")
	@ExcelDictImportValidate(enumResolver = "hazard_in_storage_type",message = "入库类型不存在")
    private String inStorageType;

	/**
	* 存储位置
	*/
    @ExcelProperty("存储位置")
	@NotBlank(message = "存储位置为必填项")
	@ExcelDictImportValidate(enumResolver = "storage_info",message = "存储位置不存在")
    private String storageLocationId;

	/**
	* 来源
	*/
    @ExcelProperty("来源")
    private String chemicalSource;

	/**
	* 入库时间
	*/
    @ExcelProperty("入库时间")
	@NotNull(message = "入库时间为必填项")
    private Date inDate;

	/**
	* 入库数量
	*/
    @ExcelProperty("入库数量")
	@NotNull(message = "入库数量为必填项")
    private BigDecimal inNumber;

	/**
	* 备注
	*/
    @ExcelProperty("备注")
    private String remark;


}
